/**
 * 
 */
package com.samebuilding.dao;

import java.util.List;

import com.samebuilding.domain.Activity;

public interface ActivityDAO extends GenericDAO<Activity, Integer> {

	public void deleteActivity(int activityId, int uid);
	
	public Activity getActivityByIdAndPostUid(int activityId, int postUid);
	
	/**
	 * 
	 * @param bigType
	 * @param startRecord
	 * @param maxRecord
	 * @return
	 */
	public List<Activity> findByBigType(int bigType, int startRecord, int maxRecord);
	
	public int  findCountByBigType(int bigType);

	public List<Activity> findBySmallType(int smallType, int startRecord, int maxRecord);
	
	public int  findCountBySmallType(int smallType);
	
	
	public List<Activity> findByPostUid(int postUid, int start, int limit);
	
	public List<Activity> findIJoinByUid(int uid, int start, int limit);
	
	public int findCountIJoinByUid(int uid);
	
	public int findCountByPostUid(int postUid);
	
}
